package framework

import (
	"geek_ros/framework/command"
	"geek_ros/framework/config"
	"github.com/spf13/cobra"
	"os"
)

func CommandStart(){

	geek := config.Start()

	start := &cobra.Command{
		Use:   "geekros",
		Short: "Welcome " + geek.Name,
		Long: "\n\nWelcome " + geek.Name + " " + geek.Version + " https://www.geekros.com",
	}

	start.AddCommand(command.VersionCommand(geek.Name, geek.Version))

	start.AddCommand(command.SdkCommand())

	start.AddCommand(command.UpdateCommand())

	start.AddCommand(command.StartCommand())

	start.AddCommand(command.MessageCommand())

	if err := start.Execute(); err != nil {
		os.Exit(1)
	}
}
